package inter.test;

import inter.service.File;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestFile {
    public static void main(String[] args) {
        AbstractApplicationContext factory=new ClassPathXmlApplicationContext("bean.xml");
        File file=(File)factory.getBean("file");
        file.say();
        factory.registerShutdownHook();
    }
}
